-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates for Metadata 2.1 (PEP 566) #1286
Conversation
Hi @jaraco, anything I can do to help get this merged? Since |
These changes look to be backwards-compatible. Can you add an entry to the CHANGES.rst with an 0.1 bump from the last? Then we can pull that and cut a release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a virtualenv, installed @di's branches of twine
& setuptools
, added a description_content_type
to the setup.py
in my project, and created and uploaded a package to Test PyPI successfully. I have two questions:
- The warning
/usr/local/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'description_content_type'
comes fromreadme_renderer
, right? I presume it does because:
$ python setup.py check -r -s
/usr/local/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'description_content_type'
warnings.warn(msg)
running check
- The wheel building step still makes a
DESCRIPTION.rst
(Forms990_analysis-1.0.5.dev1.dist-info/DESCRIPTION.rst
). This feels suboptimal to me given that, when I inspect theDESCRIPTION.rst
here, it's my MarkdownREADME
. Should this be addressed in this PR?
Log:
(dustin-setuptools-test) sumanah@momentum:~/test/form990s$ python setup.py sdist bdist_wheel
/usr/local/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'description_content_type'
warnings.warn(msg)
/home/sumanah/test/psf/setuptools/setuptools/dist.py:366: UserWarning: Normalizing '1.0.5dev1' to '1.0.5.dev1'
normalized_version,
running sdist
running egg_info
writing Forms990_analysis.egg-info/PKG-INFO
writing dependency_links to Forms990_analysis.egg-info/dependency_links.txt
writing requirements to Forms990_analysis.egg-info/requires.txt
writing top-level names to Forms990_analysis.egg-info/top_level.txt
reading manifest file 'Forms990_analysis.egg-info/SOURCES.txt'
writing manifest file 'Forms990_analysis.egg-info/SOURCES.txt'
running check
creating Forms990-analysis-1.0.5.dev1
creating Forms990-analysis-1.0.5.dev1/Forms990_analysis.egg-info
copying files to Forms990-analysis-1.0.5.dev1...
copying README.rst -> Forms990-analysis-1.0.5.dev1
copying setup.cfg -> Forms990-analysis-1.0.5.dev1
copying setup.py -> Forms990-analysis-1.0.5.dev1
copying Forms990_analysis.egg-info/PKG-INFO -> Forms990-analysis-1.0.5.dev1/Forms990_analysis.egg-info
copying Forms990_analysis.egg-info/SOURCES.txt -> Forms990-analysis-1.0.5.dev1/Forms990_analysis.egg-info
copying Forms990_analysis.egg-info/dependency_links.txt -> Forms990-analysis-1.0.5.dev1/Forms990_analysis.egg-info
copying Forms990_analysis.egg-info/requires.txt -> Forms990-analysis-1.0.5.dev1/Forms990_analysis.egg-info
copying Forms990_analysis.egg-info/top_level.txt -> Forms990-analysis-1.0.5.dev1/Forms990_analysis.egg-info
Writing Forms990-analysis-1.0.5.dev1/setup.cfg
Creating tar archive
removing 'Forms990-analysis-1.0.5.dev1' (and everything under it)
running bdist_wheel
running build
installing to build/bdist.linux-x86_64/wheel
running install
running install_egg_info
Copying Forms990_analysis.egg-info to build/bdist.linux-x86_64/wheel/Forms990_analysis-1.0.5.dev1-py3.6.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/Forms990_analysis-1.0.5.dev1.dist-info/WHEEL
creating '/home/sumanah/test/form990s/dist/Forms990_analysis-1.0.5.dev1-py3-none-any.whl' and adding '.' to it
adding 'Forms990_analysis-1.0.5.dev1.dist-info/DESCRIPTION.rst'
adding 'Forms990_analysis-1.0.5.dev1.dist-info/metadata.json'
adding 'Forms990_analysis-1.0.5.dev1.dist-info/top_level.txt'
adding 'Forms990_analysis-1.0.5.dev1.dist-info/WHEEL'
adding 'Forms990_analysis-1.0.5.dev1.dist-info/METADATA'
adding 'Forms990_analysis-1.0.5.dev1.dist-info/RECORD'
(dustin-setuptools-test) sumanah@momentum:~/test/form990s$
It comes from It can be safely ignored.
This is a good catch, but I'm pretty sure this happens in |
Yeah, here's the relevant lines in I'm not really sure what that's used for since the description also exists as the message body in |
@jaraco Added a changelog entry, thanks! |
Releasing now as 38.6.0. |
Oops, misread your request for a version bump. Thanks! |
This caused a regression for me. PR incoming: #1293 |
Hi I notices it loads normal markdown as usual. But I believe lots of markdowns are in GFM (GitHub flavored) format. For e.g. it supports
But not print('Hello')
# ```python
# print('Hello')
# ``` We can think about code highlighting and all the advanced features later but for now I think just adding the support to render it as normal markdown would be nice. |
@sayanarijit Thank you for the comment! Several people have asked about Warehouse supporting GitHub-flavored Markdown -- for that let's talk in pypa/packaging-problems#126, as this is a request that spans a few different codebases. |
This PR makes the necessary updates for Metadata 2.1 (PEP 566):
Description-Content-Type
andProvides-Extra
fieldsVersion
field to2.1
if either of the new fields are present